package com.yjq0713.test6;

public class Square extends Graph {
    private int a;

    Square(int a) {
        this.a = a;
    }

    public void setA(int a) {
        this.a = a;
    }

    @Override
    public double area() {
        return a * a;
    }
}
